﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UpdateProject.aspx.cs" Inherits="Bitirme.Views.UpdateProject" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<script type="text/javascript">
    $(function () {
        $('#MainContent_startdate').datepick({ dateFormat: 'dd/mm/yyyy' });
        $('#MainContent_enddate').datepick({ dateFormat: 'dd/mm/yyyy' });
    });    
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<p><asp:Label ID="ProjectNameLabel" runat="server" AssociatedControlID="">Proje Adı:</asp:Label>
<asp:Label ID="ProjectName" runat="server" AssociatedControlID=""></asp:Label></p>
<p><asp:Label ID="ProjeSubjectLabel" runat="server" AssociatedControlID="">Proje Konusu:</asp:Label>
<asp:Label ID="ProjectSubject" runat="server" AssociatedControlID=""></asp:Label></p>
<p><asp:Label ID="ProjeDetailLabel" runat="server" AssociatedControlID="">Proje Detayları:</asp:Label>
<asp:Label ID="ProjectDetail" runat="server" AssociatedControlID=""></asp:Label></p>
<p><asp:Label ID="ProjectCostLabel" runat="server" AssociatedControlID="">Proje Tutari:</asp:Label>
<asp:Label ID="ProjectCost" runat="server" AssociatedControlID=""></asp:Label></p>
<p><asp:Label ID="ProjectDurationLabel" runat="server" AssociatedControlID="">Proje Süresi:</asp:Label>
<asp:Label ID="ProjectDuration" runat="server" AssociatedControlID=""></asp:Label></p>


<br />
    <fieldset class="login">
    <legend>Projeyi Güncelle</legend>
    <span class="failureNotification">
        <asp:Literal ID="FailureText" runat="server"></asp:Literal>
    </span>
    <asp:ValidationSummary ID="AddProjectValidationSummary" runat="server" CssClass="failureNotification" ValidationGroup="AddProjectValidationGroup" />
    <p>
        <asp:Label ID="NameLabel" runat="server" AssociatedControlID="NameTextBox">Proje Adı:</asp:Label>
        <asp:TextBox ID="NameTextBox" runat="server" CssClass="textEntry"></asp:TextBox>
        <asp:RequiredFieldValidator ID="NameRequired" runat="server" ControlToValidate="NameTextBox" 
                             CssClass="failureNotification" ErrorMessage="Proje Adı boş bırakılamaz." ToolTip="Proje Adı giriniz." 
                             ValidationGroup="AddProjectValidationGroup">*</asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Label ID="SubjectLabel" runat="server" AssociatedControlID="SubjectTextBox">Proje Konusu:</asp:Label>
        <asp:TextBox ID="SubjectTextBox" runat="server" CssClass="textEntry"></asp:TextBox>
        <asp:RequiredFieldValidator ID="SubjectRequired" runat="server" ControlToValidate="SubjectTextBox" 
                             CssClass="failureNotification" ErrorMessage="Proje Konusu boş bırakılamaz." ToolTip="Proje Konusu giriniz." 
                             ValidationGroup="AddProjectValidationGroup">*</asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Label ID="DetailsLabel" runat="server" AssociatedControlID="DetailsTextBox">Açıklama:</asp:Label>
        <asp:TextBox ID="DetailsTextBox" runat="server" CssClass="textEntry"></asp:TextBox>
    </p>
    <p>
        <asp:Label ID="CostLabel" runat="server" AssociatedControlID="CostTextBox">Bütçe:</asp:Label>
        <asp:TextBox ID="CostTextBox" runat="server" CssClass="textEntry"></asp:TextBox>
    </p>
    <p>
        <asp:Label ID="StateLabel" runat="server" AssociatedControlID="ProjectStateList">Durum:</asp:Label>
        <asp:DropDownList ID="ProjectStateList" runat="server">
            <asp:ListItem Value="0">Hiçbiri</asp:ListItem>
            <asp:ListItem Selected="True" Value="1">Aktif</asp:ListItem>
            <asp:ListItem Value="2">Pasif</asp:ListItem>
            <asp:ListItem Value="3">Askıda</asp:ListItem>
        </asp:DropDownList>
    </p>
    <p>
        Başlama Tarihi: <asp:TextBox ID="startdate" runat="server" CssClass="textEntry"></asp:TextBox> -
        Bitiş Tarihi: <asp:TextBox ID="enddate" runat="server" CssClass="textEntry"></asp:TextBox>
    </p>
    <p>
        <asp:Label ID="DurationLabel" runat="server" AssociatedControlID="DurationTextBox">Süre:</asp:Label>
        <asp:TextBox ID="DurationTextBox" runat="server" CssClass="textEntry"></asp:TextBox>
        <asp:RequiredFieldValidator ID="DurationRequired" runat="server" ControlToValidate="DurationTextBox" 
                             CssClass="failureNotification" ErrorMessage="Projes Süresi boş bırakılamaz." ToolTip="Proje Süresi giriniz." 
                             ValidationGroup="AddProjectValidationGroup">*</asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Label ID="PMLabel" runat="server" AssociatedControlID="PMDropDownList">Proje Yöneticisi:</asp:Label>
        <asp:DropDownList ID="PMDropDownList" runat="server"></asp:DropDownList>
    </p>
    <p>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Projeyi Güncelle" ValidationGroup="AddProjectValidationGroup" />
    </p>
    <p><asp:Label ID="lblMessage" runat="Server" ForeColor="red" EnableViewState="False"></asp:Label></p>
    </fieldset>


</asp:Content>

